package login

import (
	"6-5zk/common/proto/user"
	"6-5zk/service/server"
	"context"
)

type UserServer struct {
	user.UnimplementedUserServer
}

func NewUserServer() *UserServer {
	return &UserServer{}
}

func (u UserServer) TakeFoodList(ctx context.Context, req *user.TakeFoodListReq) (*user.TakeFoodListResp, error) {
	list, err := server.TakeFoodList(req)
	if err != nil {
		return nil, err
	}
	return list, nil
}
func (u UserServer) NoticeCreate(ctx context.Context, req *user.NoticeCreateReq) (*user.NoticeCreateResp, error) {
	list, err := server.NoticeCreate(req)
	if err != nil {
		return nil, err
	}
	return list, nil
}
